Test data
![Alt text](../7.4 Standard methods of solution/image.png)
Test data
- A set of test data is all the items of data required to work through a solution.
- normal data – data that is accepted by a program (-1,1,20)
- abnormal data – data that is rejected by a program(a,!)
- extreme data – the largest/smallest data value that is accepted by a program(0,18)
- boundary data – the largest/smallest data value that is accepted by a program and the corresponding smallest/ largest rejected data value(0,18,-1,1,17,19)
DECLARE Age: INTEGER
OUTPUT “Please input your age:”
INPUT Age
IF Age >= 18
THEN
OUTPUT ”Adult”
ELSE
IF Age > 0
THEN
OUTPUT “Child”
ELSE
OUTPUT “Error”
ENDIF
ENDIF